package com.luo.chengrui.module.sa.convert.role;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import com.luo.chengrui.module.sa.dal.dataobject.role.PermissionViewDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.role.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.role.PermissionDO;

/**
 * 角色菜单权限 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface PermissionConvert {

    PermissionConvert INSTANCE = Mappers.getMapper(PermissionConvert.class);

    PermissionDO convert(PermissionCreateReqVO bean);

    PermissionDO convert(PermissionUpdateReqVO bean);

    PermissionRespVO convert(PermissionDO bean);

    PermissionRespVO convert(PermissionViewDO bean);

    List<PermissionRespVO> convertList(List<PermissionDO> list);

    List<PermissionRespVO> convertViewList(List<PermissionViewDO> list);

    PageResult<PermissionRespVO> convertPage(PageResult<PermissionDO> page);

    List<PermissionExcelVO> convertList02(List<PermissionDO> list);

}
